package model

// LoginRequest 表示登录请求载荷
type LoginRequest struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

// RegisterRequest 表示注册请求载荷
type RegisterRequest struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
	NickName string `json:"nick_name" binding:"required"`
}

// LoginResponse 表示登录响应
type LoginResponse struct {
	Token  string `json:"token"`
	User   User   `json:"user"`
	GameWS string `json:"game_ws_url"` // 游戏服务器WebSocket的URL
}
